import {defineComponent} from "vue";
import {getAssetsImages} from "@/utils/utils";
import "./css/index.css"
export default defineComponent({
    setup(){
        const picList = [
            getAssetsImages('img1.jpg'),
            getAssetsImages('img2.jpg'),
            getAssetsImages('img3.jpg'),
        ]
        const items = picList.map((item)=>{
            return (
                <el-carousel-item>
                    <img src={item} alt="None" className={'swiperImg'}/>
                </el-carousel-item>
            )
        })
        return ()=>{
            return <>
                <el-carousel trigger="click" height="400px">
                    {items}
                </el-carousel>
            </>
        }
    }
})